import json

def loadjson(path):
    jsonfile = open(path,'r')
    result = json.load(jsonfile)
    jsonfile.close()
    return result
#gbk 文件需要二进制读取
def readConfigJosn():
    jsonFile = open('configxml/config.template.json','rb')
    result = json.load(jsonFile)
    jsonFile.close()
    return result

if __name__ == '__main__':
    myfile = open('../configxml/test.json', 'r')
    result = json.load(myfile)
    myfile.close()
    print(result)
    print(result['key'])
    josn = readConfigJosn()
    print(josn['localPersistentBaseDir'])
